# example8_19.py

"""
# >>> sys.path.append('F:\\wxg103\\pythonProjects\\FluentPython\\ch08')
# >>> from example8_18 import Cheese
# >>> import weakref
# >>> stock = weakref.WeakValueDictionary()
# >>> catalog = [Cheese('Red Leicester'), Cheese('Tilsit'),]
# >>> catalog = [Cheese('Red Leicester'), Cheese('Tilsit'),
# ...             Cheese('Brie'), Cheese('Parmesan')]
# >>> for cheese in catalog:
# ...     stock[cheese.kind] = cheese
# ...
# >>> sorted(stock.keys())
# ['Brie', 'Parmesan', 'Red Leicester', 'Tilsit']
# >>> del catalog
# >>> sorted(stock.keys())
# ['Parmesan']
# >>> del cheese
# >>> sorted(stock.keys())
# []
"""
